import type * as Login from "./type"
import { request } from "@/http/axios"

/** 获取当前登陆用户详情 */
export function getUserInfoApi(occupation) {
  return request<Login.UserInfoResponseData>({
    url: "user/userInfo",
    method: "get",
    params: {
      occupation
    }
  })
}
